﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SimpleForm_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
	<t:Manager runat="server" ClientScriptVariablePrefix="ListControls.">
		<Includes>
			<t:StyleFileInclude Src="~/Res/CSS/Main.css" />
			<t:ScriptFileInclude Src="~/ListControls/ListControls.js" />
		</Includes>
		<ClientIds>
			<t:AssignedClientId runat="server" ControlId="cmb" Variable="cmb"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="cbl" Variable="cbl"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="ddl" Variable="ddl"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="lb" Variable="lb"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="rbl" Variable="rbl"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="txtCBL" Variable="txtCBL"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="txtCMB" Variable="txtCMB"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="txtDDL" Variable="txtDDL"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="txtLB" Variable="txtLB"></t:AssignedClientId>
			<t:AssignedClientId runat="server" ControlId="txtRBL" Variable="txtRBL"></t:AssignedClientId>
		</ClientIds>
		<Scenarios>
			<t:PostScenario runat="server" ID="psDDL" PostControlIds="ddl" ReturnControlIds="txtDDL" />
			<t:PostScenario runat="server" ID="psLB" PostControlIds="lb" ReturnControlIds="txtLB" />
			<t:PostScenario runat="server" ID="psCMB" PostControlIds="cmb" ReturnControlIds="txtCMB" />
			<t:PostScenario runat="server" ID="psCBL" PostControlIds="cbl" ReturnControlIds="txtCBL" />
			<t:PostScenario runat="server" ID="psRBL" PostControlIds="rbl" ReturnControlIds="txtRBL" />
		</Scenarios>
	</t:Manager>
	<div>
		<h4>
			DropDownList (SELECT tag)</h4>
		<p>
			<t:DropDownList runat="server" ID="ddl">
				<Items>
					<t:ListItem Value="1" Text="One" />
					<t:ListItem Value="2" Text="Two" />
					<t:ListItem Value="3" Text="Three" />
				</Items>
			</t:DropDownList>
			<br />
			Check on the
			<t:Button runat="server" ID="btnClientDDL" Text="Client" Click-Client="ListControls.btnClientDDL_Click" />
			<t:Button runat="server" ID="btnServerDDL" Text="Server">
				<Click PostScenarioId="psDDL" OnServer="btnServerDDL_Click" />
			</t:Button>
			<br />
			<t:TextBox runat="server" ID="txtDDL" />
		</p>
		<hr />
		<h4>
			ListBox (SELECT tag)</h4>
		<p>
			<t:ListBox runat="server" ID="lb" Multiple="true">
				<Items>
					<t:ListItem Value="1" Text="One" />
					<t:ListItem Value="2" Text="Two" />
					<t:ListItem Value="3" Text="Three" />
				</Items>
			</t:ListBox>
			<br />
			Check on the
			<t:Button runat="server" ID="btnClientLB" Text="Client" Click-Client="ListControls.btnClientLB_Click" />
			<t:Button runat="server" ID="btnServerLB" Text="Server">
				<Click PostScenarioId="psLB" OnServer="btnServerLB_Click" />
			</t:Button>
			<br />
			<t:TextBox runat="server" ID="txtLB" />
		</p>
		<hr />
		<h4>
			ComboBox (complex control)</h4>
		<p>
			<t:ComboBox runat="server" ID="cmb">
				<Items>
					<t:ListItem Value="1" Text="One" />
					<t:ListItem Value="2" Text="Two" />
					<t:ListItem Value="3" Text="Three" />
				</Items>
			</t:ComboBox>
			<br />
			Check on the
			<t:Button runat="server" ID="btnClientCMB" Text="Client" Click-Client="ListControls.btnClientCMB_Click" />
			<t:Button runat="server" ID="btnServerCMB" Text="Server">
				<Click PostScenarioId="psCMB" OnServer="btnServerCMB_Click" />
			</t:Button>
			<br />
			<t:TextBox runat="server" ID="txtCMB" />
		</p>
		<hr />
		<h4>
			CheckBoxList (complex control)</h4>
		<p>
			<t:CheckBoxList runat="server" ID="cbl">
				<Items>
					<t:ListItem Value="1" Text="One" />
					<t:ListItem Value="2" Text="Two" />
					<t:ListItem Value="3" Text="Three" />
				</Items>
			</t:CheckBoxList>
			<br />
			Check on the
			<t:Button runat="server" ID="btnClientCBL" Text="Client" Click-Client="ListControls.btnClientCBL_Click" />
			<t:Button runat="server" ID="btnServerCBL" Text="Server">
				<Click PostScenarioId="psCBL" OnServer="btnServerCBL_Click" />
			</t:Button>
			<br />
			<t:TextBox runat="server" ID="txtCBL" />
		</p>
		<hr />
		<h4>
			RadioButtonList (complex control)</h4>
		<p>
			<t:RadioButtonList runat="server" ID="rbl">
				<Items>
					<t:ListItem Value="1" Text="One" />
					<t:ListItem Value="2" Text="Two" />
					<t:ListItem Value="3" Text="Three" />
				</Items>
			</t:RadioButtonList>
			<br />
			Check on the
			<t:Button runat="server" ID="btnClientRBL" Text="Client" Click-Client="ListControls.btnClientRBL_Click" />
			<t:Button runat="server" ID="btnServerRBL" Text="Server">
				<Click PostScenarioId="psRBL" OnServer="btnServerRBL_Click" />
			</t:Button>
			<br />
			<t:TextBox runat="server" ID="txtRBL" />
		</p>
	</div>
	</form>
</body>
</html>
